//
//  ViewController.m
//  06_ScrollView(CycleImages)
//
//  Created by dllo on 16/7/21.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "ViewController.h"
#import "YHCycleImage.h"
#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSArray *array = @[@"0", @"1", @"2", @"3", @"4"];
    YHCycleImage *cycle = [[YHCycleImage alloc] initWithFrame:CGRectMake(0, 0, WIDTH, 400)];
    [cycle createImagesWithArray:array];
    [self.view addSubview:cycle];
//    cycle.cycleScrollView.showsHorizontalScrollIndicator = YES; // 可以改变cycleScrollView的属性

    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
